package com.lhk.appframework.factory;

import android.content.Context;

import com.lhk.appframework.presenter.login.ImplPresenterLogin;
import com.lhk.appframework.presenter.login.PresenterLogin;
import com.lhk.appframework.presenter.splash.ImplPresenterSplash;
import com.lhk.appframework.presenter.splash.PresenterSplash;
import com.lhk.appframework.presenter.splash.PresenterSplashUI;

public class FactoryPresenterDefault extends FactoryPresenter{

	private FactoryPresenterDefault() {
		
	}
	private static class FactoryPresenterDefaultHolder{
		private static final FactoryPresenterDefault instance = new FactoryPresenterDefault();
	}
	
	public static FactoryPresenterDefault getInstance(){
		return FactoryPresenterDefaultHolder.instance;
	}
	
	
	@Override
	public PresenterSplash createPresenterSplash(Context context, PresenterSplashUI presenterUI) {
		return new ImplPresenterSplash(context, presenterUI);
	}

	@Override
	public PresenterLogin createPresenterLogin() {
		return new ImplPresenterLogin();
	}
	
}
